/*
 * @Author: wangjq4214
 * @Date: 2022-05-02 19:18:24
 * @LastEditTime: 2022-05-08 17:21:35
 * @LastEditors: wangjq4214
 */
export const STORAGE_ADD_URL = '/storage/add';
export const STORAGE_DEL_URL = '/storage/del';
export const SRORAGE_LIST_URL = '/storage';
export const STORAGE_SCALE_URL = '/storage/scale';

export interface StorageAddReq {
  storageType: number;
  storageScale: number;
  nodeMemory: number;
  mainNodeMemory: number;
  slaveNodeMemory: number;
}

export interface StorageListItem {
  mainNode: string;
  size: number;
  mainMemory: number;
  slaveMemory: number;
  id: string;
  type: 1 | 2 | 3;
  time: string;
}

export type StorageList = { total: number; item: StorageListItem[] };
